Use XML data elements in your printer layout XSL file to display data from N4 in a printed gate document. When you save a truck visit and gate transaction, N4 saves the associated data in various XML data elements as defined in the Document.xsd schema file. The document schema has the following two main blocks where the XML data elements reside:
argo:truckVisit: Truck visit data saved in the truck visit data elements (on page 1).
argo:trkTransaction: Gate transaction data saved in the gate transaction data elements (on page 1).
The standard printer layout XSL file also has the same two main blocks. You can modify the standard printer layout XSL file to add or remove XML data elements to display the data you require in your printed gate documents. To modify a printer layout XSL file we recommend that you have a working knowledge of XML.
You can customize a printer layout XSL file for transaction type documents and truck visit documents. Transaction type documents contain the details and messages for each transaction type. Therefore, a truck performing two moves during a visit, such as Receive Empty (RM) and Deliver Empty (DM) gate transactions, receives two gate documents, one for each move. The transaction type document has only one <argo:trkTransaction> tag.
The truck visit document contains the details and messages for the truck visit, which includes the transaction type information. Therefore, this document can contain more than one <argo:trkTransaction> tag.
When customizing a printer layout XSL file for a truck visit document, the XSL file should be written so that it reads the <argo:trkTransaction> tag in a loop.
If you want to add a gate transaction data element in the argo:truckVisit block, or a truck visit data element in the argo:trkTransaction block of the printer layout XSL file, you must include the path preceding the data element name. For example, to display the tranNbr data element in the argo:truckVisit block, use ../argo:trkTransaction/tranNbr.
All XML data elements listed in the tables are case sensitive. When adding an XML data element to the printer layout XSL file, use the same case as displayed in the Truck visit data elements (on page 1) table, Gate transaction data elements (on page 1) table, and Document.xsd schema file.
For more information, see add custom message to gate tickets (on page 1).